// import './assets/main.css' ////默认 不要了
import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 全局指令注册
// 引入懒加载指令插件并注册
import { lazyPlugin } from '@/directives'




import App from './App.vue'
import router from './router'
// import  './assets/main.css'

//     引入初始化的样式文件
import '@/styles/common.scss'

// 引入全局组件插件
import {componentPlugin} from "@/components/index.js";

// 测试接口函数
// import {getCategory} from "@/apis/testApi.js";
// getCategory().then(res => console.log(res))




const app = createApp(App)
const pinia =createPinia()
// 注册持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
pinia.use(piniaPluginPersistedstate)


app.use(pinia)
app.use(router)
app.use(componentPlugin)
app.use(lazyPlugin)
app.mount('#app')

